.class Lcom/melesta/payment/tapjoy/TapjoySystem$3;
.super Ljava/lang/Object;
.source "TapjoySystem.java"

# interfaces
.implements Lcom/tapjoy/TapjoyNotifier;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/melesta/payment/tapjoy/TapjoySystem;->getPoints(Z)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/melesta/payment/tapjoy/TapjoySystem;

.field final synthetic val$ignoreErrors:Z


# direct methods
.method constructor <init>(Lcom/melesta/payment/tapjoy/TapjoySystem;Z)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 74
    iput-object p1, p0, Lcom/melesta/payment/tapjoy/TapjoySystem$3;->this$0:Lcom/melesta/payment/tapjoy/TapjoySystem;

    iput-boolean p2, p0, Lcom/melesta/payment/tapjoy/TapjoySystem$3;->val$ignoreErrors:Z

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public getUpdatePoints(Ljava/lang/String;I)V
    .locals 3
    .parameter "currencyName"
    .parameter "pointTotal"

    .prologue
    .line 79
    const-string v0, "tapjoy"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "currencyName: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 80
    const-string v0, "tapjoy"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "pointTotal: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 81
    return-void
.end method

.method public getUpdatePointsFailed(Ljava/lang/String;)V
    .locals 4
    .parameter "error"

    .prologue
    .line 85
    iget-boolean v1, p0, Lcom/melesta/payment/tapjoy/TapjoySystem$3;->val$ignoreErrors:Z

    if-nez v1, :cond_0

    .line 86
    invoke-static {}, Lcom/melesta/payment/PaymentManager;->getInstance()Lcom/melesta/payment/PaymentManager;

    move-result-object v1

    new-instance v2, Lcom/melesta/payment/tapjoy/TapjoyListenerRequestFilter;

    const/4 v3, 0x0

    invoke-direct {v2, v3}, Lcom/melesta/payment/tapjoy/TapjoyListenerRequestFilter;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, v2}, Lcom/melesta/payment/PaymentManager;->getRequest(Lcom/melesta/payment/interfaces/IRequestFilter;)Lcom/melesta/payment/interfaces/IRequest;

    move-result-object v0

    check-cast v0, Lcom/melesta/payment/tapjoy/TapjoyListenerRequest;

    .line 90
    .local v0, r:Lcom/melesta/payment/tapjoy/TapjoyListenerRequest;
    if-nez v0, :cond_1

    .line 98
    .end local v0           #r:Lcom/melesta/payment/tapjoy/TapjoyListenerRequest;
    :cond_0
    :goto_0
    return-void

    .line 92
    .restart local v0       #r:Lcom/melesta/payment/tapjoy/TapjoyListenerRequest;
    :cond_1
    invoke-static {}, Lcom/melesta/payment/PaymentManager;->getInstance()Lcom/melesta/payment/PaymentManager;

    move-result-object v1

    new-instance v2, Lcom/melesta/payment/tapjoy/TapjoyErrorResponse;

    invoke-direct {v2}, Lcom/melesta/payment/tapjoy/TapjoyErrorResponse;-><init>()V

    invoke-virtual {v0}, Lcom/melesta/payment/tapjoy/TapjoyListenerRequest;->getName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/melesta/payment/tapjoy/TapjoyErrorResponse;->setName(Ljava/lang/String;)Lcom/melesta/payment/tapjoy/TapjoyErrorResponse;

    move-result-object v2

    iget-object v3, p0, Lcom/melesta/payment/tapjoy/TapjoySystem$3;->this$0:Lcom/melesta/payment/tapjoy/TapjoySystem;

    #getter for: Lcom/melesta/payment/tapjoy/TapjoySystem;->defaultListener:Lcom/melesta/payment/interfaces/IListener;
    invoke-static {v3}, Lcom/melesta/payment/tapjoy/TapjoySystem;->access$000(Lcom/melesta/payment/tapjoy/TapjoySystem;)Lcom/melesta/payment/interfaces/IListener;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/melesta/payment/tapjoy/TapjoyErrorResponse;->setListener(Lcom/melesta/payment/interfaces/IListener;)Lcom/melesta/payment/tapjoy/TapjoyErrorResponse;

    move-result-object v2

    invoke-virtual {v2, p1}, Lcom/melesta/payment/tapjoy/TapjoyErrorResponse;->setError(Ljava/lang/String;)Lcom/melesta/payment/tapjoy/TapjoyErrorResponse;

    move-result-object v2

    const/4 v3, 0x1

    invoke-virtual {v2, v3}, Lcom/melesta/payment/tapjoy/TapjoyErrorResponse;->setErrorCode(I)Lcom/melesta/payment/tapjoy/TapjoyErrorResponse;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/melesta/payment/PaymentManager;->postResponse(Lcom/melesta/payment/interfaces/IResponse;)V

    goto :goto_0
.end method
